package com.linkdood.app.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linkdood.app.constants.SystemNoticeConstants;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 系统通知消息
 * @author yunJ
 */
@Data
@NoArgsConstructor
@TableName("system_notice")
public class SystemNotice {

    @TableId
    public String id;

    public String type;

    public String status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    public SystemNotice(String type) {
        this.type = type;
        this.status = SystemNoticeConstants.SYSTEM_NOTICE_STATUS_UNREAD;
    }
}
